<?php session_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
if(isset($_SESSION['lang']))
    require_once "./language_files/viewDeadline_" . $_SESSION['lang'] . ".php";
else
    require_once "./language_files/viewDeadline_en.php";

require_once "functions.php";
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>

    <body>

        <label value = "<?php
// embedding PHP code within a label in order to view deadline  

$confid=mysql_real_escape_string($_GET['id']);//getting confrence id 
//getting the deadline of the submission
$deadline=mysql_query("
                     SELECT `subm_deadline`
                     FROM `confrence c`
                     Where  `c.confrence_id= $confid`      
                 ");
//putting the deadline in a variable 
$row=mysql_fetch_assoc($deadline);
$submdeadline=formatText_safe($row['subm_deadline']);
;
// printing the deadline
echo $lang['deadline'] . " " . $submdeadline;
?>" > </label>
    </body>
</html>
